package request

type Login struct {
	Username   string `form:"username" binding:"required,max=16,min=3"`
	Password string `form:"password" binding:"required,max=16,min=6"`
}

type Register struct {
	Login
}

type Search struct {
	Mobile string `form:"mobile" binding:"required,len=11"`
}

type UserInfo struct {
	UserId uint64 `form:"userId" binding:"max=20"`
}

type UserModify struct {
	Nickname string `form:"nickname" binding:"required,max=10"`
	Sex int8 `form:"sex" binding:"gte=0,lte=2"`
	Intro string `form:"intro" binding:"required"`
	Avatar string `form:"avatar"`
}